package com.example.demo.config;

/**
 * 数据源切换注解
 *
 * @ClassName TargetDataSource
 * @Author: HanQiCheng
 * @DateTime: 2022/8/15 11:38
 */
import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource {

    String value() default DataSourceConst.DB1;
}

